package gp;

/**
 * This is the base class for all kinds of terminal nodes.
 */
abstract class Terminal extends Program {

	int countNodes() {
		return 1;
	}

	int countNodes(Condition cond) {
		return (cond.test(this)) ? 1 : 0;
	}

}